<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  function logs(msg) {
    console.log(msg)
  }

  function forList() {
    let array = [];
    for (let i = 0; i < 10; i++) {
      array[i] = i;
      logs(i)
    }
  }

  {
    forList();
  }

</script>
</body>
</html>
